/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.util.List;
import javax.persistence.*;
import play.db.jpa.Model;
/**
 *
 * @author Dsi
 */
@Entity
public class Country extends Model{
    public String name;
    public Boolean status;
    @OneToMany(mappedBy = "country")
    public List<State> states;
//    Collection<State> states;

    public Country() {
    }

    public Country(String name, Boolean status, List<State> states) {
        this.name = name;
        this.status = status;
        this.states = states;
    }

    
}
